The Slider Component > FSlider.getMaxValue()

 

FSlider.getMaxValue()

Availability

Flash Player 6.

Usage

mySlider_sld.getMaxValue ()

Parameters

None.

Returns

Returns the maximum value of the slider.

Description

Returns the maximum value of the slider. The maximum value is the value represented when the thumb control is all the way to the right (horizontal) or top (vertical) of the slider component.

Example

The slider_getMaxValue.fla example file contains an example of using this method.

The following code sets the range of values for the slider and then traces the max value.

mySlider_sld.setSliderProperties(0,100);
trace( "Max Value: " + mySlider_sld.getMaxValue() );//traces 100

See also

FSlider.getMinValue()

FSlider.setSliderProperties()